<!DOCTYPE html>
<html lang="en">
<title>门店数据</title>
<#import "/layout/layout.html" as body/>
<@body.page>

<style>
    .is-back-tab .nav-tabs > li.active > a, .is-back-tab .nav-tabs > li.active > a:hover, .is-back-tab .nav-tabs > li.active > a:focus { background-color: inherit; color: #0a8; border: 0; border-bottom: 2px solid #0a8; }
    .is-back-tab .panel-body { background: #f3f3f4; border: 0 }
    .is-back-tab .nav-tabs { background: #fff; }
    .is-back-fff { padding: 0 15px; background: #fff; }
    .sortable-list li { overflow: hidden; }
    .agile-list li:hover { cursor: inherit }
    .col-1 { height: 150px; line-height: 150px; font-size: 20px; font-weight: bold; border-right: 2px solid #ccc }
    .is-border-2 { height: 150px; border-right: 2px solid #ccc }
    .is-ele { text-align: center }
    .is-ele p { font-size: 14px; color: #555; margin-top: 45px; }
    .is-ele h2 { font-size: 30px; color: #333; }
    .is-edit .fa-edit { cursor: pointer }
    .is-edit input { display: inline-block; width: 100px; border: 0; padding: 5px; border-radius: 2px; }
    .is-edit input:focus { outline: 0; border-bottom: 1px solid #0a8 }
    .margin-left-0 { margin-left: 0 !important; }
    .none { display: none; }
    .is-red-div, .is-black-div { height: 150px; font-size: 24px; text-align: center; border-radius: 2px }
    .is-red-div { color: #9c0006; background-color: #ffc7ce }
    .is-black-div { color: #fff; background-color: #404040 }
    .is-red-div h1, .is-black-div h1 { margin-top: 50px; margin-bottom: 0; }
    .is-red-div small, .is-black-div small { font-size: 14px; }
    .is-red-div > h2, .is-black-div > h2 { margin-top: 0; line-height: 150px; }
</style>
<!--按日期数据-->
<h1>${storeName!}</h1>
<div class="modal-loading"></div>
<!--<input type="hidden" id="storeId" name="storeId" value="${storeId!0}">-->
<section class="wrapper wrapper-content animated fadeInUp">
    <div class="tabs-container is-back-tab">
        <ul class="nav nav-tabs" id="ul_id">
            <li class="active" value="1"><a data-toggle="tab" href="#tab-1" aria-expanded="true" value="1">门店运营指标</a></li>
            <li class="" value="2"><a data-toggle="tab" href="#tab-2" aria-expanded="false" value="2">门店经营分析</a></li>
        </ul>
        <div class="tab-content">
            <!--门店运营指标-->
            <div id="tab-1" class="tab-pane active">
                <div class="panel-body">
                    <div class="animated fadeInRight" style="padding-top: 0">
                        <div class="overflow is-back-fff">
                            <h2 class="pull-left" id="dateTime">按日期数据（2017.03.13）</h2>
                            <form class="form-inline pull-right" role="form" style="margin: 15px 0">
                                <div data-toggle="buttons" class="btn-group">
                                    <label class="btn btn-sm btn-white active"> <input type="radio" id="option1" name="options" value="1" checked="checked"> 按天 </label>
                                    <label class="btn btn-sm btn-white"> <input type="radio" id="option2" name="options" value="2"> 按周 </label>
                                    <label class="btn btn-sm btn-white"> <input type="radio" id="option3" name="options" value="3"> 按月 </label>
                                </div>
                                <div class="form-group">
                                    <input type="text" class="form-control" id="exampleInputEmail" placeholder="按日期查询" readonly="readonly" value="${dateTime!}">
                                    <input type="text" class="form-control week" id="Week" placeholder="按周查询" style="display: none" readonly="readonly" value="${dateTime!}">
                                    <input type="text" class="form-control year_month" id="yearMonth" placeholder="按月查询" style="display: none" readonly="readonly" value="${dateTime!}">
                                	<input type="hidden" id="types" name="types" value="${type!1}">
                                </div>
                                <button type="button" class="btn btn-primary" id="btn_query">查询</button>
                            </form>
                        </div>
                        <div class="row">
                            <!--1111111111-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>当期零售订单笔数</h5>
                                        <span class="label label-success pull-right btn btn-sm" id="orderCount_xq" onclick="quertOrderXQ('orderCount','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="orderCount">${orderCount!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>当期零售流水</h5>
                                        <span class="label label-info pull-right btn btn-sm" id="orderWater_xq" onclick="quertOrderAmt('orderWater','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="orderWater">${orderWater!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>当期零售实收金额</h5>
                                        <span class="label label-primary pull-right btn btn-sm" id="orderRevenueAmt_qx" onclick="quertOrderAmt('orderRevenueAmt','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="orderRevenueAmt">${orderRevenueAmt!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>当期付费总人数</h5>
                                        <span class="label label-warning pull-right btn btn-sm open_modal" id="orderPayNumber_qx" onclick="quertOrderXQ('orderPayNumber','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="orderPayNumber">${orderPayNumber!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <!--222222222222-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>当期新增会员</h5>
                                        <span class="label label-success pull-right btn btn-sm open_modal" onclick="quertOrderVip('vipNum','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipNum">${vipNum!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>当期新增会员流水</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderVip('vipWater','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipWater">${vipWater!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>当期会员实收</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipAmt','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipAmt">${vipAmt!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>当期流失会员数</h5>
                                        <span class="label label-warning pull-right btn  btn-sm open_modal" onclick="quertVipLost('vipLost','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipLost">${vipLost!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <!--33333333333333-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>当期会员零售转化率</h5>
                                        <span class="label label-success pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipConversionRate','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipConversionRate">${vipConversionRate!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>当期会员自助转化率</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipSelfConversionRate','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipSelfConversionRate">${vipSelfConversionRate!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>当期零售复购率</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderRate('retailRechargeRate','0');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="retailRechargeRate">${retailRechargeRate!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>当期排课量</h5>
                                        <span class="label label-warning pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('courseCount','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="courseCount">${courseCount!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <!--44444444444444-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>当期团课满课率</h5>
                                        <span class="label label-success pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('teamFullClassRate','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="teamFullClassRate">${teamFullClassRate!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>当期用户平均购买次数</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('averagePayCount','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="averagePayCount">${averagePayCount!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="vip_jl">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>当期教练课时费</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('coachAmt','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="coachAmt">${coachAmt!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="vip_xf">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>当期会员续费率(仅月有)</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipRenewalFeeRate','0')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="vipRenewalFeeRate">${vipRenewalFeeRate!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <input id="monthCard" name="monthCard" type="hidden" value="${monthCard!0}"> 
                            <#if monthCard?? >
                            <!-- 5555555555555555555 包月卡 统计 start -->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>新增团课包月会员数</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardNum','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="monthCardNum">${monthCardNum!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>团课包月会员流水</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardWater','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="monthCardWater">${monthCardWater!0}</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>团课包月会员实收</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardAmt','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="monthCardAmt">${monthCardAmt!0}</h1>
                                    </div>
                                </div>
                            </div>
                        	<!-- 5555555555555555555 包月卡 统计 end -->
                        	</#if>
                        </div>
                    </div>
                    <!--大盘数据模态框-->
                    <div class="modal fade bs-example-modal-lg-1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
                         aria-hidden="true">
                        <div class="modal-dialog modal-lg" style="margin-top: 200px">
                            <div class="modal-content" style="padding: 20px">
                                <h3 id="dpxq">实收明细</h3>
                                <ul class="folder-list m-b-md category-list" id="daxq_sj" style="padding: 0"></ul>
                            </div>
                        </div>
                    </div>
                    <!--大盘数据模态框-->
                    <!--汇总类数据-->
                    <section class="animated fadeInUp">
                        <div class="overflow is-back-fff">
                            <h2 class="pull-left">门店汇总类数据（2016.11.01至当前的数据汇总）</h2>
                            <form class="form-inline pull-right" role="form" style="margin: 15px 0">
                                <button type="button" class="btn btn-primary" id="click_hz">点击查询</button>
                            </form>
                        </div>
                        <div class="row animated fadeInUp" style="display: none;" id="hz_data_box">
                            <!--1111111111-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>零售订单总笔数</h5>
                                        <span class="label label-success pull-right btn btn-sm" onclick="quertOrderXQ('orderCount','1');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_orderCount">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>零售总流水</h5>
                                        <span class="label label-info pull-right btn btn-sm" onclick="quertOrderAmt('orderWater','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_orderWater">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>零售总实收</h5>
                                        <span class="label label-primary pull-right btn btn-sm" onclick="quertOrderAmt('orderRevenueAmt','1');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_incomeAmt">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>付费总人数</h5>
                                        <span class="label label-warning pull-right btn btn-sm open_modal" onclick="quertOrderXQ('orderPayNumber','1');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_payCount">0</h1>
                                    </div>
                                </div>
                            </div>
                            <!--222222222222-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>门店当前在线会员</h5>
                                        <!-- <span class="label label-success pull-right btn btn-sm open_modal" onclick="quertUserStortCount('vipCount','1');">查看详情</span> -->
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipCount">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>会员总流水</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderVip('vipWater','1');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipWater">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>会员总实收</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipAmt','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipAmt">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>会员续费率</h5>
                                        <span class="label label-warning pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipRenewalFeeRate')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipRenewalFeeRate">0</h1>
                                    </div>
                                </div>
                            </div>
                            <!--33333333333333-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>门店流失会员总数</h5>
                                        <span class="label label-success pull-right btn  btn-sm open_modal" onclick="quertVipLost('vipLost','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipLost">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>会员零售转化率</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipConversionRate')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipRetailRate">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>会员自助转化率</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('vipSelfConversionRate')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_vipSelfRetailRate">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 4 -->
                                        <h5>零售复购率</h5>
                                        <span class="label label-warning pull-right btn  btn-sm open_modal" onclick="quertOrderRate('retailRechargeRate','1');">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_retailRate">0</h1>
                                    </div>
                                </div>
                            </div>
                            <!--44444444444444-->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>团课平均满课率</h5>
                                        <span class="label label-success pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('teamFullClassRate')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_teamFullClassRate">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>用户平均购买次数</h5>
                                        <span class="label label-info pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('averagePayCount')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_averagePayCount">0</h1>
                                    </div>
                                </div>
                            </div>
                            <#if monthCard?? >
                            <!-- 5555555555555555555 包月卡 统计 start -->
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 1 -->
                                        <h5>当期新增团课包月会员数</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardNum','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_monthCardNum">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 2 -->
                                        <h5>当期新增团课包月会员流水</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardWater','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_monthCardWater">0</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-sm-6">
                                <div class="ibox float-e-margins" id="">
                                    <div class="ibox-title">
                                        <!-- 3 -->
                                        <h5>当期新增团课包月会员实收</h5>
                                        <span class="label label-primary pull-right btn  btn-sm open_modal" onclick="quertOrderZhuShi('monthCardAmt','1')">查看详情</span>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins" id="hz_monthCardAmt">0</h1>
                                    </div>
                                </div>
                            </div>
                        	<!-- 5555555555555555555 包月卡 统计 end -->
                        	</#if>
                        </div>
                    </section>
                </div>
            </div>
            <!--门店经营分析-->
            <div id="tab-2" class="tab-pane">
                <div class="panel-body">
                    <div class="animated fadeInRight" style="padding-top: 0">
                        <div class="overflow">
                            <form class="form-inline pull-right" role="form" style="margin: 15px 0">
                                <input id="storeId" type="hidden" name="storeId" value="${storeId!}">
                                <div class="form-group">
                                    <!-- <select class="form-control" id="yearMonth1" name="yearMonth1">
                                    <option >
                                    </select> -->
                                    <input type="text" class="form-control" id="yearMonth1" readonly="readonly" placeholder="按日期查询">
                                </div>
                                <button id="tab_2_button" type="button" class="btn btn-primary" onclick="queryStoreFinancialAnalysisData()">查询</button>
                            </form>
                        </div>
                        <ul class="sortable-list connectList agile-list">
                            <li>
                                <div class="col-sm-2 text-center col-1">收入流水</div>
                                <div class="col-sm-8 is-border-2">
                                    <div class="col-sm-3 is-ele">
                                        <p>购买会员流水</p>
                                        <h2>¥<span id="storeVipOrderAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele">
                                        <p>团课包月流水</p>
                                        <h2>¥<span id="monthTeamCardOrderAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele">
                                        <p>零售营业额</p>
                                        <h2>¥<span id="storeRetailOrderAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele is-edit">
                                        <p>企业销售收入<i class="fa fa-edit" id="edit_icon"></i></p>
                                        <h2>¥<span id="amt_money" class="none"></span></h2>
                                        <div id="edit_box" class="none">
                                            <input type="text">
                                            <button type="button" class="btn btn-sm btn-primary">确定</button>
                                            <button type="button" class="btn btn-sm btn-default margin-left-0">取消</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-2 is-ele">
                                    <p>小计</p>
                                    <h2>¥<span id="allFlowFeeDiv"></span></h2>
                                </div>
                            </li>
                            <li>
                                <div class="col-sm-2 text-center col-1">实收金额</div>
                                <div class="col-sm-8 is-border-2">
                                    <div class="col-sm-3 is-ele">
                                        <p>会员实收</p>
                                        <h2>¥<span id="storeVipRealIncomeAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele">
                                        <p>团课包月实收</p>
                                        <h2>¥<span id="monthTeamCardRealIncomeAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele">
                                        <p>零售实收</p>
                                        <h2>¥<span id="storeRetailRealIncomeAmtDiv"></span></h2>
                                    </div>
                                    <div class="col-sm-3 is-ele is-edit">
                                        <p>企业销售实收 <i class="fa fa-edit" id="edit_icon1"></i></p>
                                        <h2>¥<span id="amt_money1" class="none"></span></h2>
                                        <div id="edit_box1" class="none">
                                            <input type="text" value="${storeCompanyRealFee!}">
                                            <button type="button" class="btn btn-sm btn-primary">确定</button>
                                            <button type="button" class="btn btn-sm btn-default margin-left-0">取消</button>
                                        </div>

                                    </div>
                                </div>
                                <div class="col-sm-2 is-ele">
                                    <p>小计</p>
                                    <h2>¥<span id="allRealFeeDiv"></span></h2>
                                </div>
                            </li>
                            <li>
                                <div class="col-sm-2 text-center col-1">支出成本</div>
                                <div class="col-sm-8 is-border-2">
                                    <div class="col-sm-3 is-ele is-edit">
                                        <p>教练课时费<i class="fa fa-edit" id="edit_icon5"></i></p>
                                        <h2>¥<span id="storeCoachAmtDiv" class="none"></span></h2>
                                        <!-- <h2>¥<span id="storeCoachAmtDiv" class="none"></span></h2> -->
                                        <div id="edit_box5" class="none">
                                            <input type="text">
                                            <button type="button" class="btn btn-sm btn-primary">确定</button>
                                            <button type="button" class="btn btn-sm btn-default margin-left-0">取消</button>
                                        </div>
                                    </div>
                                    <div class="col-sm-3 is-ele">
                                    </div>
                                    <div class="col-sm-3 is-ele is-edit">
                                        <p>场地租金<i class="fa fa-edit" id="edit_icon3"></i></p>
                                        <!--
                                         <h2>¥<span id="storeRealRentFeeDiv"></span></h2> -->
                                        <h2>¥<span id="amt_money3" class="none"></span></h2>
                                        <div id="edit_box3" class="none">
                                            <input type="text">
                                            <button type="button" class="btn btn-sm btn-primary">确定</button>
                                            <button type="button" class="btn btn-sm btn-default margin-left-0">取消</button>
                                        </div>
                                    </div>
                                    <div class="col-sm-3 is-ele is-edit">
                                        <p>其他杂费 <i class="fa fa-edit" id="edit_icon2"></i></p>
                                        <h2>¥<span id="amt_money2" class="none"></span></h2>
                                        <div id="edit_box2" class="none">
                                            <input type="text">
                                            <button type="button" class="btn btn-sm btn-primary">确定</button>
                                            <button type="button" class="btn btn-sm btn-default margin-left-0">取消</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-2 is-ele">
                                    <p>小计</p>
                                    <h2>¥<span id="allPayFeeDiv"></span></h2>
                                </div>
                            </li>
                        </ul>
                        <div class="row">
                            <div class="col-sm-6">
                                <div id="flowFee_id">
                                    <div class="col-sm-4">
                                        <h1>经营利润</h1>
                                        <small>(收入流水-支出成本)</small>
                                    </div>
                                    <h2 class="col-sm-8">¥<span id="storeFlowFeeDiv"></span></h2>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div id="realFee_id">
                                    <div class="col-sm-4">
                                        <h1>会计利润</h1>
                                        <small>(实收金额-支出成本)</small>
                                    </div>
                                    <h2 class="col-sm-8">¥<span id="storeRealFeeDiv"></span></h2>
                                </div>
                            </div>
                        </div>

                        <!--应收支出曲线图-->
                        <div class="ibox float-e-margins" style="margin-top: 20px">
                            <div class="ibox-title overflow">
                                <h3 class="pull-left">应收支出曲线图</h3>
                                <form class="form-inline pull-right" role="form">
                                    <div class="form-group">
                                        <input type="email" class="form-control" id="month_range" readonly="readonly" placeholder="筛选月份区间">
                                    </div>
                                    <button type="button" class="btn btn-primary" id="inquire" style="margin: 0">查询</button>
                                </form>
                            </div>
                            <div class="ibox-content">
                                <div id="slineChart" class="none animated fadeInRight"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</section>

<link href="${baseUrl}css/plugins/c3/c3.min.css" rel="stylesheet">
<script src="${baseUrl}js/main.js"></script>
<script src="${baseUrl}js/plugins/d3/d3.min.js"></script>
<script src="${baseUrl}js/plugins/c3/c3.min.js"></script>
<script type="text/javascript" src="${baseUrl}js/data/data_store.js"></script>

<script>
    $(function () {

        // 筛选月份区间
        $('#month_range').daterangepicker({
            showWeekNumbers: false, //是否显示第几周
            timePicker: false, //是否显示小时和分钟
            timePickerIncrement: 60, //时间的增量，单位为分钟
            timePicker12Hour: false, //是否使用12小时制来显示时间
            ranges: {
                '最近1月': [moment().subtract('months', 1), moment()],
                '最近3月': [moment().subtract('months', 3), moment()],
                '最近6月': [moment().subtract('months', 6), moment()],
                '最近12月': [moment().subtract('months', 12), moment()]
            },
            opens: 'left', //日期选择框的弹出位置
            buttonClasses: ['btn btn-default'],
            applyClass: 'btn-small btn-primary blue',
            cancelClass: 'btn-small',
            format: 'YYYY-MM', //控件中from和to 显示的日期格式 YYYY-MM-DD HH:mm:ss
            separator: '~',
            locale: {
                applyLabel: '确定',
                cancelLabel: '取消',
                fromLabel: '起始时间',
                toLabel: '结束时间',
                customRangeLabel: '自定义',
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            }
        }, function (start, end, label) {//格式化日期显示框
            $('#month_range span').html(start.format('YYYY-MM') + ' - ' + end.format('YYYY-MM'));
        });
        // 筛选月份区间 点击查询
        $("#inquire").click(function () {
            $("#slineChart").removeClass("none");
            var storeId = $("#storeId").val();
            var month_range = $("#month_range").val();
            if (month_range == "") {
                swal("提示", "请输入筛选月份区间", "error");
                return false;
            }
            $('.modal-loading').show();
            $.ajax({
                type: "post",
                url: "queryBalanceMapByYearMonthRange",
                data: {"storeId": storeId, "month_range": month_range},
                success: function (result) {
                    if (result) {
                        c3.generate({
                            bindto: '#slineChart',
                            data: {
                                x: 'x',
                                columns: result.columns,
                                type: 'spline',
                            },
                            axis: {
                                x: {
                                    type: 'category'
                                }
                            }
                        });
                    }
                    $('.modal-loading').hide();
                },
                error: function () {
                    alert("页面数据加载失败！");
                    $('.modal-loading').hide();
                }
                
            });
        });

        $('.check_date').daterangepicker({
            startDate: moment().startOf('day'),
            endDate: moment(),
            //minDate: '01/01/2012',    //最小时间
            //maxDate: moment(), //最大时间
            dateLimit: {days: 365}, //起止时间的最大间隔
            showDropdowns: true,
            showWeekNumbers: false, //是否显示第几周
            timePicker: false, //是否显示小时和分钟
            timePickerIncrement: 60, //时间的增量，单位为分钟
            timePicker12Hour: false, //是否使用12小时制来显示时间
            ranges: {
                //'最近1小时': [moment().subtract('hours',1), moment()],
                // '今日': [moment().startOf('day'), moment()],
                // '昨日': [moment().subtract('days', 1).startOf('day'), moment().subtract('days', 1).endOf('day')],
                '最近7日': [moment().subtract('days', 6), moment()],
                '最近30日': [moment().subtract('days', 30), moment()]
            },
            opens: 'left', //日期选择框的弹出位置
            buttonClasses: ['btn btn-default'],
            applyClass: 'btn-small btn-primary blue',
            cancelClass: 'btn-small',
            format: 'YYYY-MM-DD', //控件中from和to 显示的日期格式 YYYY-MM-DD HH:mm:ss
            separator: '~',
            locale: {
                applyLabel: '确定',
                cancelLabel: '取消',
                fromLabel: '起始时间',
                toLabel: '结束时间',
                customRangeLabel: '自定义',
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            }
        }, function (start, end, label) {//格式化日期显示框
            $('.check_date span').html(start.format('YYYY-MM-DD') + ' - ' + end.format('YYYY-MM-DD'));
        });

        $('#exampleInputEmail').daterangepicker({
            startDate: moment().startOf('day'),
            endDate: moment(),
            dateLimit: {days: 365}, //起止时间的最大间隔
            showDropdowns: true,
            showWeekNumbers: false, //是否显示第几周
            timePicker: false, //是否显示小时和分钟
            timePickerIncrement: 60, //时间的增量，单位为分钟
            timePicker12Hour: false, //是否使用12小时制来显示时间
            ranges: {
                //'最近1小时': [moment().subtract('hours',1), moment()],
                '今日': [moment().startOf('day'), moment()],
                '昨日': [moment().subtract('days', 1).startOf('day'), moment().subtract('days', 1).endOf('day')],
                '最近7日': [moment().subtract('days', 6), moment()],
                '最近30日': [moment().subtract('days', 30), moment()]
            },
            opens: 'left', //日期选择框的弹出位置
            buttonClasses: ['btn btn-default'],
            applyClass: 'btn-small btn-primary blue',
            cancelClass: 'btn-small',
            format: 'YYYY-MM-DD', //控件中from和to 显示的日期格式 YYYY-MM-DD HH:mm:ss
            separator: '~',
            locale: {
                applyLabel: '确定',
                cancelLabel: '取消',
                fromLabel: '起始时间',
                toLabel: '结束时间',
                customRangeLabel: '自定义',
                daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
                monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
                firstDay: 1
            }
        }, function (start, end, label) {//格式化日期显示框
            $('#exampleInputEmail span').html(start.format('YYYY-MM-DD') + ' - ' + end.format('YYYY-MM-DD'));
        });

        /*$('.exampleInputEmail').datetimepicker({
         language: 'zh-CN',
         weekStart: 1,
         todayBtn: 1,
         autoclose: 1,
         todayHighlight: 1,
         startView: 2,
         forceParse: 0,
         showMeridian: 0,
         minView: "month",
         format: "yyyy-mm-dd"
         });*/

        //
        $('#yearMonth1').datetimepicker({
            language: 'zh-CN',
            weekStart: 1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 3,
            forceParse: 0,
            showMeridian: 0,
            minView: "year",
            format: "yyyy-mm"
        });

        $(".btn-white").click(function () {
            var op = $(this).children().attr("id");
            if (op == "option1") {
                $("#exampleInputEmail").show();
                $("#Week,#yearMonth").hide();
                $("#exampleInputEmail").val(moment().startOf('day').format('YYYY-MM-DD')+'~'+moment().startOf('day').format('YYYY-MM-DD'));
                $("#types").val(1);
            } else if (op == "option2") {
                $("#Week").show();
                $("#exampleInputEmail,#yearMonth").hide();
                $("#Week").val(moment().subtract('weeks', 1).startOf('day').format('YYYY-MM-DD') + '~' +moment().startOf('day').format('YYYY-MM-DD'));
                $("#types").val(2);
            } else if (op == "option3") {
                $("#yearMonth").show();
                $("#Week,#exampleInputEmail").hide();
                $("#yearMonth").val(moment().format('YYYY-MM'));
                $("#types").val(3);
            }
            data_ajax();
        });

        // 汇总类数据
        $("#click_hz").click(function () {
            $("#hz_data_box").show();
        });

        // 排行类数据
        $("#click_ph").click(function () {
            $("#ph_data_dox").show();
        });
        // 企业销售流水 编辑
        Edit('#edit_icon', '#edit_box', '#amt_money', '#allFlowFeeDiv', '#storeVipOrderAmtDiv','#monthTeamCardOrderAmtDiv', '#storeRetailOrderAmtDiv', 1);
        // 企业销售流水 编辑
        Edit('#edit_icon1', '#edit_box1', '#amt_money1', '#allRealFeeDiv', '#storeVipRealIncomeAmtDiv','#onthTeamCardRealIncomeAmtDiv', '#storeRetailRealIncomeAmtDiv', 2);
        // 当月水电费用 编辑
        Edit('#edit_icon2', '#edit_box2', '#amt_money2', '#allPayFeeDiv', '#storeCoachAmtDiv', null,'#amt_money3', 3);
        //场地租金编辑
        Edit('#edit_icon3', '#edit_box3', '#amt_money3', '#allPayFeeDiv', '#storeCoachAmtDiv',null, '#amt_money2', 4);
        //教练课时费
        Edit('#edit_icon5', '#edit_box5', '#storeCoachAmtDiv', '#allPayFeeDiv', '#amt_money3',null, '#amt_money2', 5);

        function Edit($icon, $edit_box, $amt_money, $all_money_div, $vip_order,$monthTeamCard, $retial_order, type) {
            $($icon).click(function () {
                $($edit_box).removeClass('none');
                $($edit_box).children('input').focus();
                if (!$($amt_money).hasClass('none')) {
                    $($amt_money).addClass('none')
                }
            });
            $($edit_box).children('.btn-primary').click(function () { // 确认
                var msg = type === 1 ? '企业销售实收金额不能为空!' : '当月水电费用金额不能为空!';
                if (!$($edit_box).children('input').val()) {
                    swal(msg, '', 'error').then(function () {
                        $($edit_box).children('input').focus();
                    });
                    return false
                }
                var modifyAmt = $($edit_box).children('input').val();
                var storeId = $("#storeId").val();
                var yearMonth = $("#yearMonth1").val();

                $.ajax({
                    type: "post",
                    url: "saveOrUpdateStoreBalanceDetail",
                    data: {"storeId": storeId, "yearMonth": yearMonth, "updateAmt": modifyAmt, "type": type},
                    success: function (result) {
                        if (result) {
                            if (result.msg == 'success') {
                                swal("提示", "数据更新成功", "success");
                                $($amt_money).text(Math.round(modifyAmt * 100) / 100).removeClass("none");
                                $($edit_box).addClass('none');
                                var allFee = Number(modifyAmt) + Number($($vip_order).text()) + Number($($retial_order).text());
                                if($monthTeamCard!=null){
                                    allFee = allFee+Number($($monthTeamCard).text());
                                }
                                $($all_money_div).text(Math.round(allFee * 100) / 100);

                                var allFlowFee = Number($("#allFlowFeeDiv").text());
                                var allRealFee = Number($("#allRealFeeDiv").text());
                                var allPayFee = Number($("#allPayFeeDiv").text());
								
                                var storeFlowFee = allFlowFee - allPayFee;
                                $("#flowFee_id").removeClass();
                                if (storeFlowFee > 0) {//.is-red-div, .is-black-div
                                    $("#flowFee_id").addClass("is-black-div");
                                } else {
                                    $("#flowFee_id").addClass("is-red-div");
                                }
                                $("#storeFlowFeeDiv").text(Math.round(storeFlowFee * 100) / 100);
                                var storeRealFee = allRealFee - allPayFee;
                                $("#realFee_id").removeClass();
                                if (storeRealFee > 0) {
                                    $("#realFee_id").addClass("is-black-div");
                                } else {
                                    $("#realFee_id").addClass("is-red-div");
                                }
                                $("#storeRealFeeDiv").text(Math.round(storeRealFee * 100) / 100);
                                $($edit_box).children('input').val('');
                            } else {
                                swal("提示", "数据更新失败,请检查是否输入月份数据", "error");
                                calcel();
                            }
                        }
                    }
                });

            });
            $($edit_box).children('.btn-default').click(function () { // 取消
                if ($($edit_box).children('input').val()) {
                    $($amt_money).removeClass('none');
                    $($edit_box).addClass('none')
                } else {
                    $($edit_box).addClass('none');
                    if (!$($amt_money).hasClass('none')) {
                        $($amt_money).addClass('none')
                    }
                }

            });
        }
		// 点击查询类型
        $('#ul_id li a').click(function () {
            _class = $(this).context.innerHTML;
            if(_class == '门店经营分析'){
            	queryStoreFinancialAnalysisData();
            }
        }); 

    });

    function calcel() { // 取消
        if ($($edit_box).children('input').val()) {
            $($amt_money).removeClass('none');
            $($edit_box).addClass('none')
        } else {
            $($edit_box).addClass('none');
            if (!$($amt_money).hasClass('none')) {
                $($amt_money).addClass('none')
            }
        }
    }

    function queryStoreFinancialAnalysisData() {
        var storeId = $("#storeId").val();
        var yearMonth = $("#yearMonth1").val();
        $('.modal-loading').show();
        $("#tab_2_button").attr('disabled', "true");
        $("#storeVipOrderAmtDiv,#monthTeamCardOrderAmtDiv,#storeRetailOrderAmtDiv,#amt_money,#allFlowFeeDiv").text('0');
        $("#storeVipRealIncomeAmtDiv,#monthTeamCardRealIncomeAmtDiv,#storeRetailRealIncomeAmtDiv,#amt_money1,#allRealFeeDiv").text('0');
        $("#storeCoachAmtDiv,#amt_money3,#amt_money2,#allPayFeeDiv").text('0');
        $.ajax({
            type: "post",
            url: "queryStoreBusinessAnalysisData",
            data: {"storeId": storeId, "yearMonth": yearMonth},
            success: function (result) {
                if (result) {
                    
                    $("#yearMonth1").val(result.yearMonth);
                    $("#storeVipOrderAmtDiv").text(Math.round(result.storeVipOrderAmt * 100) / 100);
                    $("#monthTeamCardOrderAmtDiv").text(Math.round(result.monthTeamCardOrderAmt*100)/100);
                    $("#storeRetailOrderAmtDiv").text(Math.round(result.storeRetailOrderAmt * 100) / 100);
                    $("#amt_money").removeClass("none").text(Math.round(result.storeCompanyFlowFee * 100) / 100);
                    var allFlowFee = result.storeVipOrderAmt +result.monthTeamCardOrderAmt+ result.storeRetailOrderAmt + result.storeCompanyFlowFee;
                    $("#allFlowFeeDiv").text(Math.round(allFlowFee * 100) / 100)

                    $("#storeVipRealIncomeAmtDiv").text(Math.round(result.storeVipRealIncomeAmt * 100) / 100);
                    $("#monthTeamCardRealIncomeAmtDiv").text(Math.round(result.monthTeamCardRealIncomeAmt * 100) / 100);
                    $("#storeRetailRealIncomeAmtDiv").text(Math.round(result.storeRetailRealIncomeAmt * 100) / 100);
                    var allRealFee = result.storeVipRealIncomeAmt +result.monthTeamCardRealIncomeAmt+ result.storeRetailRealIncomeAmt;
                    var storeCompanyRealFee = result.storeCompanyRealFee;
                    $("#amt_money1").removeClass("none").text(Math.round(storeCompanyRealFee * 100) / 100);
                    allRealFee = allRealFee + storeCompanyRealFee;
                    $("#allRealFeeDiv").text(Math.round(allRealFee * 100) / 100);
					
                    var storeCoachAmt = result.storeCoachAmt;
                    if(storeCoachAmt > 0){
                    	$("#storeCoachAmtDiv").removeClass("none").text(Math.round(result.storeCoachAmt * 100) / 100);
                    }
                    /* $("#storeCoachAmtDiv").text(Math.round(result.storeCoachAmt * 100) / 100); */
                    var storeRealRentFee = result.storeRealRentFee;
                    if (storeRealRentFee)
                        $("#amt_money3").removeClass("none").text(Math.round(result.storeRealRentFee * 100) / 100);
                    var allPayFee = result.storeCoachAmt + result.storeRealRentFee;
                    var storeOtherFee = result.storeOtherFee;
                    $("#amt_money2").removeClass("none").text(Math.round(storeOtherFee * 100) / 100);
                    allPayFee = allPayFee + storeOtherFee;
                    $("#allPayFeeDiv").text(Math.round(allPayFee * 100) / 100);

                    var storeFlowFee = allFlowFee - allPayFee;
                    $("#flowFee_id").removeClass();
                    if (storeFlowFee > 0) {//.is-red-div, .is-black-div
                        $("#flowFee_id").addClass("is-black-div");
                    } else {

                        $("#flowFee_id").addClass("is-red-div");
                    }
                    $("#storeFlowFeeDiv").text(Math.round(storeFlowFee * 100) / 100);
                    var storeRealFee = allRealFee - allPayFee;
                    $("#realFee_id").removeClass();
                    if (storeRealFee > 0) {
                        $("#realFee_id").addClass("is-black-div");
                    } else {
                        $("#realFee_id").addClass("is-red-div");
                    }
                    $("#storeRealFeeDiv").text(Math.round(storeRealFee * 100) / 100);
                    
                }
                $('.modal-loading').hide();
            },
            error: function () {
                alert("页面数据加载失败！");
                $('.modal-loading').hide();
            }

        });

        $("#tab_2_button").removeAttr('disabled');
    }

</script>

</@body.page>
</html>